package com.coisshi.base.common.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 是否枚举
 */
@Getter
public enum YesNoEnum implements BaseEnum {
    NO(0, "否"),
    YES(1, "是");

    @EnumValue
    private final int code;
    @EnumValue
    private final String label;

    YesNoEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getLabel() {
        return this.label;
    }
} 